//
//  BytedCertUtils.h
//  Pods
//
//  Created by LiuChundian on 2019/4/23.
//

#ifndef BytedCertUtils_h
#define BytedCertUtils_h

#import <CoreMotion/CoreMotion.h>


@interface BytedCertUtils : NSObject

+ (UIAlertController *)confirmAuthority:(NSString *)title message:(NSString *)message;

+ (void)requestCameraPermission:(void (^)(void))successCallback failed:(void (^)(void))failedCallback;

+ (void)requestAudioPermission:(void (^)(void))successCallback failed:(void (^)(void))failedCallback;

+ (void)requestAlbumPermission:(void (^)(void))successCallback failed:(void (^)(void))failedCallback;

+ (bool)hasCameraPermission;

+ (NSBundle *)getFrameWorkBundle;

+ (NSBundle *)getBundle;

+ (NSString *)getModelByPre:(NSString *)path pre:(NSString *)pre;

+ (bool)checkMd5:(NSString *)filePath md5:(NSString *)md5Str;

+ (UIImage *)getBackUIImage;

+ (UIImage *)getHoldSampleUIImage;

+ (UIImage *)getLoadingUIImage;

+ (bool)isIphoneX;

+ (bool)isIphoneXR;

+ (BOOL)isConnectionAvailable;

// For HTTP General parameter
+ (NSString *)getInstallID;
+ (NSString *)getOS;
+ (NSString *)getDeviceID;
+ (NSString *)getOSName;
+ (NSString *)getOSversion;
+ (NSString *)getDeviceBrand;

+ (UIColor *)colorWithRGBHex:(int)hex;

@end


@interface BytedCertSenorUtils : NSObject

@property (nonatomic, assign) int orient;
@property (nonatomic, assign) CGFloat radius;

+ (CMMotionManager *)motionManager;

- (void)startMotionManager;

- (void)stopMotionManager;

@end

// BytedCertInsetImageView
// 用来展示手持身份证照片的弹出框中的图像区域


@interface BytedCertInsetImageView : UIView

@end

// BytedCertBiggerButton
// 用来获得更大的点击区域


@interface BytedCertBiggerButton : UIButton

@end

#endif /* BytedCertUtils_h */
